<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<input type="text" name="tex" id="tex" value="" />
		<input type="button" name="btn" id="btn" value="短信验证码" />
		<script src="../../common.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			var btn = getid('btn');
			var tex = getid('tex');
			
			btn.onclick = function(){
				ajax2({
					type : 'post',
					url : 'api/duanxin.php',
					data : 'userphone=' + tex.value,
					success : function(str) {
						console.log(str);
					}
				});
			}
		</script>
	</body>
</html>
